package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksMakeVideoMapper;
import com.ruoyi.books.domain.BooksMakeVideo;
import com.ruoyi.books.service.IBooksMakeVideoService;

/**
 * 非遗制作流程视频Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-28
 */
@Service
public class BooksMakeVideoServiceImpl implements IBooksMakeVideoService 
{
    @Autowired
    private BooksMakeVideoMapper booksMakeVideoMapper;

    /**
     * 查询非遗制作流程视频
     * 
     * @param makeVideoId 非遗制作流程视频主键
     * @return 非遗制作流程视频
     */
    @Override
    public BooksMakeVideo selectBooksMakeVideoByMakeVideoId(Long makeVideoId)
    {
        return booksMakeVideoMapper.selectBooksMakeVideoByMakeVideoId(makeVideoId);
    }

    /**
     * 查询非遗制作流程视频列表
     * 
     * @param booksMakeVideo 非遗制作流程视频
     * @return 非遗制作流程视频
     */
    @Override
    public List<BooksMakeVideo> selectBooksMakeVideoList(BooksMakeVideo booksMakeVideo)
    {
        return booksMakeVideoMapper.selectBooksMakeVideoList(booksMakeVideo);
    }

    /**
     * 新增非遗制作流程视频
     * 
     * @param booksMakeVideo 非遗制作流程视频
     * @return 结果
     */
    @Override
    public int insertBooksMakeVideo(BooksMakeVideo booksMakeVideo)
    {
        return booksMakeVideoMapper.insertBooksMakeVideo(booksMakeVideo);
    }

    /**
     * 修改非遗制作流程视频
     * 
     * @param booksMakeVideo 非遗制作流程视频
     * @return 结果
     */
    @Override
    public int updateBooksMakeVideo(BooksMakeVideo booksMakeVideo)
    {
        return booksMakeVideoMapper.updateBooksMakeVideo(booksMakeVideo);
    }

    /**
     * 批量删除非遗制作流程视频
     * 
     * @param makeVideoIds 需要删除的非遗制作流程视频主键
     * @return 结果
     */
    @Override
    public int deleteBooksMakeVideoByMakeVideoIds(Long[] makeVideoIds)
    {
        return booksMakeVideoMapper.deleteBooksMakeVideoByMakeVideoIds(makeVideoIds);
    }

    /**
     * 删除非遗制作流程视频信息
     * 
     * @param makeVideoId 非遗制作流程视频主键
     * @return 结果
     */
    @Override
    public int deleteBooksMakeVideoByMakeVideoId(Long makeVideoId)
    {
        return booksMakeVideoMapper.deleteBooksMakeVideoByMakeVideoId(makeVideoId);
    }
}
